import requests from "./ajax";

// 获取考场信息
export const reqGetRoomList = (params) => {
  return requests({
    url: `/wx/examination/room/list`,
    method: "get",
    params,
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
  });
};
// 添加/修改考场信息
export const reqAddExam = (data) =>
  requests({ url: `/wx/examination/room/addOrUpdate`, data, method: "post" });

// 删除考场
export const reqdeleteExam = (params) =>
  requests({
    url: `/wx/examination/room/delete`,
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    params,
    method: "get",
  });
